package com.example.presentshopping.net.http;


import com.example.presentshopping.BuildConfig;

import rxhttp.wrapper.annotation.DefaultDomain;
import rxhttp.wrapper.annotation.Domain;

/**
 * 请求接口。
 */
public class HttpURL {

    /**
     * RxHttp提供了@DefaultDomain()、@Domain()这两个注解来标明默认域名和非默认域名。
     * 通过@Domain()注解标注非默认域名，就会在RxHttp类中生成setDomainToXxxIfAbsent()方法，其中Xxx就是注解中取的别名。
     * 使用了注解，此时(需要Rebuild一下项目)就会在RxHttp类中生成相应的setDomainToXxxIfAbsent()方法。
     * RxHttp共有3种指定域名的方式，按优先级排名分别是：手动输入域名 > 指定非默认域名 > 使用默认域名。
     * 动态域名切换的需求，只需要对BaseUrl重新赋值即可，如下：
     * HttpURL.baseUrl = "https://www.qq.com";（动态更改默认域名，改完立即生效，非默认域获取用户等级名同理）。
     */
    @DefaultDomain // 设置为默认域名（唯一）
    public static String baseUrl = BuildConfig.BASE_Url;// "https://www.wanandroid.com/";
    // 动态路径
    public final static String URL_dynamic = BuildConfig.URL_dynamic;// "/api";


    @Domain(name = "BaseUrlBaidu") // 非默认域名，并取别名为BaseUrlBaidu ---（非默认域名 示例）。

    //加油站列表
    public final static String CheZhuBangControll = "/benefit/web/CheZhuBangController/queryGasStationInfoList";


    // 流量卡的 baseUrl
    public final static String Base_flowCardIp = "http://99.liumall.co/inter/";
    // 1. 获取短信
    public final static String Req_sendSms = URL_dynamic + "api/index/getCaptcha";
    //获取修改支付密码验证码
    public final static String Req_getPwdCaptcha = URL_dynamic + "api/member/getPwdCaptcha";

    public final static String Req_login = URL_dynamic + "api/index/login";

    //获取商品列表

    public final static String Req_getGoodsList = URL_dynamic + "api/goods/getGoodsList";
    //轮播图
    public final static String Req_ggetCarousel = URL_dynamic + "api/index/getCarousel";

    // 获取拼图商品列表
    public final static String Req_getTeamGoodsList = URL_dynamic + "api/goods/getTeamGoodsList";

    //获取用户信息

    public final static String Req_getUserInfo = URL_dynamic + "api/member/getUserInfo";


    //获取订单列表
    public final static String Req_getOrderList = URL_dynamic + "api/order/getOrderList";

    //获取拼团订单红包详情
    public final static String Req_getteaminfo = URL_dynamic + "api/order/getteaminfo";


    //   获取用户二维码
    public final static String Req_getRcode = URL_dynamic + "api/member/myShareRcode";

    //我的团队
    public final static String Req_getMyteam = URL_dynamic + "api/member/getMyteam";

    //  获取收货地址列表
    public final static String Req_getAddressList = URL_dynamic + "api/member/getAddressList";
    //修改收货地址
    public final static String Req_editAddress = URL_dynamic + "api/member/editAddress";
    //删除收货地址
    public final static String Req_delAddress = URL_dynamic + "api/member/delAddress";

    //获取商品详情
    public final static String Req_getDetail = URL_dynamic + "api/goods/getGoodsDetail";


    //添加、删除的我收藏商品
    public final static String Req_addGoodsStore = URL_dynamic + "api/member/addGoodsStore";


    //创建订单
    public final static String Req_getcreateOrder = URL_dynamic + "api/order/createOrder";
    // 平台支付
    public final static String Req_orderPlatform = URL_dynamic + "api/order/orderPlatform";
    //支付宝支付
    public final static String Req_alipay = URL_dynamic + "api/order/alipay";
    //微信支付
    public final static String Req_orderwxpay = URL_dynamic + "api/order/wxpay";

    public final static String Req_Myteam = URL_dynamic + "api/member/getMyteam";
    //获取我的钱包信息
    public final static String Req_myWalletInfo = URL_dynamic + "api/member/myWalletInfo";
   //获取待收入数据
    public final static String Req_myWaitInfo = URL_dynamic + "api/member/myWaitInfo";
    //待收入转余额
    public final static String Req_waitChange = URL_dynamic + "api/member/waitChange";


    //我的收益
    public final static String Req_getRedpaper = URL_dynamic + "api/member/getRedpaper";
    //退款明细
    public final static String Req_getBalanceChanger = URL_dynamic + "api/member/getBalanceChange";
    //金币明细
    public final static String Req_getPointsChange = URL_dynamic + "api/member/getPointsChange";
    //获取礼币变动
    public final static String Req_getBlockCurrencyChange = URL_dynamic + "api/member/getBlockCurrencyChange";
    // 获取版本信息
    public final static String Req_getVersion = URL_dynamic + "api/index/getVersion";
    //提现申请
    public final static String Req_applyWithdrawal = URL_dynamic + "api/member/applyWithdrawal";
    //修改支付密码
    public final static String Req_editpwd = URL_dynamic + "api/member/editpwd";
    //今日下单检测
    public final static String Req_checkTodayOrder = URL_dynamic + "api/member/checkTodayOrder";
    //获取商品分类
    public final static String Req_getGoodsCategoryList = URL_dynamic + "api/goods/getGoodsCategoryList";
    //昨日用户红包收益排行榜
    public final static String Req_userIncomeHot = URL_dynamic + "api/index/userIncomeHot";
    //体验拼团商品列表
    public final static String Req_getExperienceGoodsList = URL_dynamic + "api/goods/getExperienceGoodsList";

    public final static String Req_getGoodsStoreList = URL_dynamic + "api/member/getGoodsStoreList";
    //获取商品子分类
    public final static String Req_getGoodsCategoryChild = URL_dynamic + "api/goods/getGoodsCategoryChild";
    //签到
    public final static String Req_userSign = URL_dynamic + "api/member/userSign";
    //签到详情
    public final static String Req_signInfo = URL_dynamic + "api/member/signInfo";

    //获取商家列表列表
    public final static String Req_getSupplierList = URL_dynamic + "api/goods/getSupplierList";
    //获取分类商品列表
    public final static String Req_getCateGoodsList = URL_dynamic + "api/goods/getCateGoodsList";
    //订单确认收货
    public final static String Req_finshOrder = URL_dynamic + "api/order/finshOrder";
    //获取资讯
    public final static String Req_getInformation = URL_dynamic + "api/index/getInformation";
    //获取抽奖产品
    public final static String Req_getTurntableList = URL_dynamic + "api/index/getTurntableList";
    // 抽奖
    public final static String Req_getTurntable = URL_dynamic + "api/index/getTurntable";
    //获取团队收益
    public final static String Req_myteamincome = URL_dynamic + "api/member/myteamincome";
    //获取提现记录
    public final static String Req_getWithdrawalList = URL_dynamic + "api/member/getWithdrawalList";
    //获取商家商品列表列表
    public final static String Req_getSupplierGoodsList = URL_dynamic + "api/goods/getSupplierGoodsList";
    //中奖记录
    public final static String Req_getTurntableRes = URL_dynamic + "api/index/getTurntableRes";
   //获取红包邀请链接
    public final static String Req_getInvitationCode = URL_dynamic + "api/index/getInvitationCode";
    //余额转金币
    public final static String Req_balanceChange = URL_dynamic + "api/member/balanceChange";
    //支付宝充值金币
    public final static String Req_aliRecharge = URL_dynamic + "api/order/aliRecharge";
    //礼币转余额
    public final static String Req_blockChange = URL_dynamic + "api/member/blockChange";

    //添加中奖收货地址
    public final static String Req_addTurntableAddress = URL_dynamic + "api/index/addTurntableAddress";
   // 获取银行卡列表
    public final static String Req_getBankList = URL_dynamic + "api/member/getBankList";
    //添加、修改银行卡
    public final static String Req_editBank = URL_dynamic +"api/member/editBank";
    //删除银行卡
    public final static String Req_delBank = URL_dynamic +"api/member/delBank";

    //获取七牛云上传token
    public final static String Req_openToken = URL_dynamic + "api/index/openToken";
    //修改用户头像昵称
    public final static String Req_editUserInfo = URL_dynamic + "api/index/editUserInfo";
    //获取订单详情
    public final static String Req_getOrderDetail = URL_dynamic + "api/order/express";
    //商城公告
    public final static String Req_notice = "https://sz.lxtianxia.cn/addons/notice.php";

    //普通订单申请退款
    public final static String Req_addRefund = URL_dynamic + "api/order/addRefund";




}
